package JavaSE.CODE.javase;

public class MyException extends Exception{
    //1 异常处理逻辑
    private int detail;
    //传递数字>10
    public MyException(int a){
        this.detail = a;
    }
    //2 异常打印信息
    @Override
    public String toString() {
        return "MyException{" + detail + "}";
    }
}
